package com.mysema.query;
import java.io.File;

import javax.persistence.Embeddable;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;

import com.mysema.query.codegen.GenericExporter;
import com.mysema.query.codegen.Keywords;

public class Gen {

        public static void main(String[] args) {
                GenericExporter exporter = new GenericExporter();
                exporter.setKeywords(Keywords.JPA);
                exporter.setEntityAnnotation(Entity.class);
                exporter.setEmbeddableAnnotation(Embeddable.class);
                exporter.setEmbeddedAnnotation(Embedded.class);
                exporter.setSupertypeAnnotation(MappedSuperclass.class);
                exporter.setSkipAnnotation(Transient.class);
                exporter.setTargetFolder(new File("target/generated-sources/java"));
                exporter.export(Person.class.getPackage());
        }

}